package com.ag.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbInformation entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_INFORMATION", schema = "dbo", catalog = "AGDB")
public class TbInformation implements java.io.Serializable {

	// Fields

	private String IId;
	private TbInforType tbInforType;
	private String IInfo;
	private String IDetial;
	private Integer IState;
	private Date IDate;
	private String ITitle;
	private String a;
	private String b;
	private String c;

	// Constructors

	/** default constructor */
	public TbInformation() {
	}

	/** minimal constructor */
	public TbInformation(String IId, String IInfo, String IDetial) {
		this.IId = IId;
		this.IInfo = IInfo;
		this.IDetial = IDetial;
	}

	/** full constructor */
	public TbInformation(String IId, TbInforType tbInforType, String IInfo,
			String IDetial, Integer IState, Date IDate, String ITitle,
			String a, String b, String c) {
		this.IId = IId;
		this.tbInforType = tbInforType;
		this.IInfo = IInfo;
		this.IDetial = IDetial;
		this.IState = IState;
		this.IDate = IDate;
		this.ITitle = ITitle;
		this.a = a;
		this.b = b;
		this.c = c;
	}

	// Property accessors
	@Id
	@Column(name = "I_ID", unique = true, nullable = false, length = 10)
	public String getIId() {
		return this.IId;
	}

	public void setIId(String IId) {
		this.IId = IId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IT_ID")
	public TbInforType getTbInforType() {
		return this.tbInforType;
	}

	public void setTbInforType(TbInforType tbInforType) {
		this.tbInforType = tbInforType;
	}

	@Column(name = "I_INFO", nullable = false, length = 512)
	public String getIInfo() {
		return this.IInfo;
	}

	public void setIInfo(String IInfo) {
		this.IInfo = IInfo;
	}

	@Column(name = "I_DETIAL", nullable = false, length = 1024)
	public String getIDetial() {
		return this.IDetial;
	}

	public void setIDetial(String IDetial) {
		this.IDetial = IDetial;
	}

	@Column(name = "I_STATE")
	public Integer getIState() {
		return this.IState;
	}

	public void setIState(Integer IState) {
		this.IState = IState;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "I_DATE", length = 23)
	public Date getIDate() {
		return this.IDate;
	}

	public void setIDate(Date IDate) {
		this.IDate = IDate;
	}

	@Column(name = "I_TITLE", length = 60)
	public String getITitle() {
		return this.ITitle;
	}

	public void setITitle(String ITitle) {
		this.ITitle = ITitle;
	}

	@Column(name = "A", length = 50)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 50)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 50)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

}